package com.soilflow.info.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.soilflow.common.annotation.DataScope;
import com.soilflow.common.domain.LandAuction;
import com.soilflow.common.domain.LandAuction2;
import com.soilflow.common.domain.dto.LandAuctionDto;
import com.soilflow.common.domain.vo.LandAuctionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/** 
@author dhp 
@date 2023/4/24 - 16:42
*/
@Mapper
public interface LandAuctionMapper extends BaseMapper<LandAuction> {
    @DataScope(deptAlias = "li")
    List<LandAuctionVo> getLandAuctionInfo(LandAuctionDto dto);

    List<String> getLandInfoByName(LandAuctionDto dto);

    List<LandAuctionVo> getLandNameFormLandInfo(LandAuctionDto dto);

    LandAuctionVo getAuctionInfoById(Long id);

    LandAuctionVo getAuctionInfoByInfoId(@Param("infoId")Long infoId);

    void updateStatus(LandAuction2 landAuction);
}